package com.jake.spring.transactional.oom;

import java.util.ArrayList;
import java.util.List;

public class HeapOOM {

    static class OOMObject {
    }

    public static void mockHeapOOM() {
        List<Object> objects = new ArrayList<>();

        while (true) {
            objects.add(new OOMObject());
        }
    }
}
